import { getAction, getSeed } from "@/views/seed-dev";
import ColumnEditor from "./src/ColumnEditor.vue";
import ColumnCreator from "./src/ColumnCreator.vue";
import ColumnBatchCreator from "./src/ColumnBatchCreator.vue";
import ColumnElementEditor from "./src/ColumnElementEditor.vue";
import { ColumnConfiguration } from "@/views/dev-types";
import ColumnList from "./src/ColumnList.vue";

export {
  ColumnEditor,
  ColumnCreator,
  ColumnBatchCreator,
  ColumnElementEditor,
  ColumnList
}

export function save(seedName: string, name: string, data: ColumnConfiguration) {
  const seed = getSeed(seedName)
  if(!seed.columns) seed.columns = {}
  seed.columns[name] = data
}